package net.sf.jOpinionPoll.dao.jpa;

import java.util.List;

import net.sf.jOpinionPoll.dao.PapelDao;
import net.sf.jOpinionPoll.entity.Papel;

public class PapelDaoJpa extends DaoJpa implements PapelDao {
	public PapelDaoJpa() {
	}
	
    private DaoJpaHelper<Papel> getDaoJpaHelper() {
    	return new DaoJpaHelper<Papel>(getEntityManager(), Papel.class);
    }

	@Override
	public Papel findByPk(Object primaryKey) {
		return getDaoJpaHelper().findByPk(primaryKey);
	}

	@Override
	public List<Papel> list() {
		return getDaoJpaHelper().list();
	}
}
